package com.example.lbstest.mapper;

import com.example.lbstest.pojo.Classes;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component
public interface ClassMapper {
    List<Classes> selectClasses(@Param("number")String number);
    //创建一个班级
    void createClass(Classes classes);
    Classes exitSameId(String id);
    //加入班级
    int addClass(@Param("id") String id, @Param("number") String number, @Param("time")String time);
    //选课人数加一
    int addOneNumber(@Param("id")String id);
    //查询id的classes
    Classes selectOneClass(@Param("id")String id);
    //classList
    List<Classes> selectClassListTeacher(String teacher_number);
}
